package com.spancer.contentcenter.test.registbean;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * author by: mars
 * Date: 2020/10/14 22:32
 * Description: 注入-方式2
 */
@Configuration
public class AnimalConfiguration {

    @Bean
    public Animal getCat(){
        return new Cat();
    }

}
